package cn.anecansaitin.whimsy.common.event;

import net.minecraft.world.entity.player.Player;
import net.neoforged.bus.api.ICancellableEvent;
import net.neoforged.neoforge.event.entity.player.PlayerEvent;

/**
 * 当玩家被治疗，并且生命值已经被回复后触发
 */
public class PlayerHealingCompletedEvent extends PlayerEvent {
    /**
     * 治疗量
     */
    private final float amount;
    /**
     * 治疗前的生命值
     */
    private final float health;

    public PlayerHealingCompletedEvent(Player player, float amount, float health) {
        super(player);
        this.amount = amount;
        this.health = health;
    }

    public float getAmount() {
        return amount;
    }

    public float getHealth() {
        return health;
    }
}
